﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using System.Web.UI;


namespace BluePortal.QuikStart
{
    public class Global : System.Web.HttpApplication
    {
        void Application_PreRequestHandlerExecute(object src, EventArgs e)
        {
            Page p = this.Context.Handler as Page;
            if (p != null)
            {
                p.PreInit += new EventHandler(page_PreInit);
            }
        }

        void page_PreInit(object sender, EventArgs e)
        {
            Page p = this.Context.Handler as Page;
            if (p != null)
            {
                p.Theme = "Default";
            }
        }

        protected void Application_Start(object sender, EventArgs e)
        {
        }

        protected void Session_Start(object sender, EventArgs e)
        {
          //  OnlineAdapter.instance.onlineService.AddOnline(User.Identity.Name);
        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {
            //OnlineAdapter.instance.onlineService.RemoveOnline(User.Identity.Name);
        }

        protected void Application_End(object sender, EventArgs e)
        {

        }

        
    }
}